<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/10/8 0008
 * Time: 22:48
 */
use yii\helpers\Html;
use yii\widgets\LinkPager;
?>

<h1>Countries</h1>
<ul>
    <?php foreach ($countries as $country): ?>
    <li>
        <?=Html::encode("{$country->name} ({$country->code})")?>:
        <?=$country->popilation ?>
    </li>
    <?php endforeach;?>
</ul>
<?= LinkPager::widget(['pagination' => $pagination]) ?>
